﻿using System;

namespace DynamicModel
{
    [Serializable]
    public class ModelError
    {
        public ModelError(Exception exception)
        {
            Exception = exception;
        }
        public ModelError(Exception exception, string errorMessage)
        {
            Exception = exception;
            ErrorMessage = errorMessage;
        }
        public ModelError(string errorMessage)
        {
            ErrorMessage = errorMessage;
        }
        public Exception Exception { get; private set; }
        public string ErrorMessage { get; private set; }
    }
}